/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.rcs.database;

import org.rcs.filesystem.*;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.rcs.servlets.utils.XMLConfig;
import org.rcs.servlets.utils.XMLFileName;

/**
 *
 * @author rubén
 */
@XMLFileName(value = "DatabaseFactory.xml")
@XStreamAlias(value = "DatabaseItemsFactory")
public class DatabaseItemsFactoryConfig extends FileItemsFactoryConfig {

  public DatabaseItemsFactoryConfig() {
    super(DatabaseItemsFactoryConfig.class, "Database System", true);

    // Add default data
  }


  public static void main(String[] args) {
    try {
      FileItemsFactoryConfig conf = new FileItemsFactoryConfig();

      conf.write();

      conf = XMLConfig.read(FileItemsFactoryConfig.class);

      conf.setEnabled(true);
      conf.write();
    } catch (IOException ex) {
      Logger.getLogger(FileItemsFactory.class.getName()).log(Level.SEVERE, null, ex);
    }
  }
}
